from distutils.core import setup
try:
    import py2exe
except ImportError:
    pass
	
manifest = """
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
	<assemblyIdentity version="0.64.1.0" processorArchitecture="x86" name="Controls" type="win32" />
	<description>Last.fm 6 Degrees Of Separation</description>
	<dependency>
		<dependentAssembly>
			<assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="X86" publicKeyToken="6595b64144ccf1df" language="*" />
		</dependentAssembly>
	</dependency>
</assembly>
"""
	
setup(name="lastfm6degrees",
      version="1.0",
      author="Andrew Wilkinson",
      author_email="andrew@indiegigs.co.uk",
      url="http://lastfm.indiegigs.co.uk/6degrees",
      download_url="http://lastfm.indiegigs.co.uk/files/lastfm6degrees-1.0.tar.gz",
      windows=[{"script": "6degrees.pyw", "icon_resources": [(1, "sixdegrees.ico")], "other_resources": [(24, 1, manifest)]}],
      scripts=["6degrees"],
      package_dir={'': 'src'},
      packages=["lastfm6degrees"],
      package_data={'': ["6degrees.pyw"], 'lastfm6degrees.gui': ["*.ui", "*.qrc", "*.png"]},
      data_files=["README", "LICENSE"]
)
